import { ref } from 'vue'
export default function useCounter(){
    let counter = ref(0)
    const increment = () =>{
      console.log('increment');
      counter.value++
    }
    const decrement = ()=>{
      console.log('decrement');
      counter.value--
    }
    return { counter , increment, decrement}
}